import axios from 'axios'

axios.interceptors.response.use(res => {
    return res.data
})

async function getRepoList() {
    return axios.get('https://api.github.com/orgs/clay-cli/repos')
}

async function getTagList(repo) {
    return axios.get(`https://api.github.com/repos/clay-cli/${repo}/tags`)
}

export {
    getRepoList,
    getTagList
}